Elementor\Modules\Ai\Module D

Total Complexity 129
Dependencies 8
Dependents 1
Total lines 909
Lines of code 689
Logical lines of code 320
Comment lines 2
Methods 34
Properties 0

Methods 34

Method Rating Maintainability Complexity Lines of code
ajax_ai_get_image_to_image_mask()
A
48 8 34
__construct()
A
40 5 65
ajax_ai_get_image_to_image()
S
50 7 30
prepare_generate_layout_context()
S
42 4 58
ajax_ai_generate_layout()
S
50 6 28
ajax_ai_get_image_to_image_replace_background()
S
51 6 26
ajax_ai_get_image_to_image_upscale()
S
51 6 26
ajax_ai_get_custom_css()
S
51 6 26
ajax_ai_upload_image()
S
54 6 20
ajax_ai_get_image_to_image_outpainting()
S
52 5 26
ajax_ai_get_edit_text()
S
53 5 23
ajax_ai_get_image_to_image_remove_background()
S
53 5 22
ajax_ai_get_custom_code()
S
54 5 22
ajax_ai_toggle_favorite_history_item()
S
58 5 15
ajax_ai_delete_history_item()
S
58 5 15
ajax_ai_get_completion_text()
S
55 4 20
ajax_ai_get_text_to_image()
S
55 4 20
ajax_ai_get_image_prompt_enhancer()
S
55 4 19
ajax_ai_get_layout_prompt_enhancer()
S
55 4 19
ajax_ai_get_history()
S
55 4 18
upload_image()
S
58 3 15
verify_permissions()
S
65 4 9
ajax_ai_set_status_feedback()
S
63 3 11
remove_temporary_containers()
S
62 3 11
ajax_ai_get_user_information()
S
56 2 19
enqueue_main_script()
S
52 1 29
enqueue_layout_script()
S
57 1 20
get_request_context()
S
71 2 6
register_layout_experiment()
S
62 1 12
get_name()
S
82 1 3
get_ai_app()
S
80 1 3
get_ai_connect_url()
S
65 1 9
is_layout_active()
S
80 1 3
ajax_ai_set_get_started()
S
69 1 7